package com.aiyan.edu.service.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * @author: zqzhou
 * @create: 2019/11/12 22:05
 **/
//@EnableEurekaClient 默认启用了，无需添加
@SpringBootApplication
@EntityScan("com.aiyan.edu.framework.domain.course")
@ComponentScan(basePackages = {"com.aiyan.edu.api"})
@ComponentScan(basePackages = {"com.aiyan.edu.framework"})
@ComponentScan(basePackages = {"com.aiyan.edu.service.search"})
public class SearchServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchServiceApplication.class, args);
    }
}
